package com.hjsoft.autofu.utils;

import java.awt.*;

/**
 * @ClassName:FontUtil
 * @Author:QM-LiuHongqing
 * @Create: 2023-01-17 10:42
 */
public class FontUtil {

    public static void drawWord(Graphics g, String str, Color color, int size, int x, int y, String font) {
        g.setColor(color);
        g.setFont(new Font(font, Font.BOLD, size));
        g.drawString(str, x, y);
    }
}
